/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.jeff.springWebTestNG.ioc.annotation;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
import org.springframework.beans.factory.annotation.Qualifier;

/**
 * This annotation extends @Qualifier, and requires 2 filters to find a bean to 
 * inject.
 * @author winnie
 */
@Retention(RetentionPolicy.RUNTIME)
@Qualifier
public @interface MovieQualifier {
    String genre();
    //Type name and field name must match, in another word, if we put:
    //Format movieFormat(); here, it won't work.
    MovieFormat movieFormat(); 
}
